#ifndef GLOBAL_H
#define GLOBAL_H
#define BRUSH_FAN
#define KEILV5
#define RS485_M_ADDR 0x58
#define RS485_S_ADDR 0x59
#include "stdint.h"
#include "SEGGER_RTT.h"

	#ifndef KEILV5
		#include <stdio.h>
		#include "win32_timer.h"
		//#define debug(...) printf(__VA_ARGS__)
        #define debug(...) printf(__VA_ARGS__)
	#else
		//#define debug(...) printf(__VA_ARGS__)
        #define debug(x,...); {SEGGER_RTT_SetTerminal(x);SEGGER_RTT_printf(0,__VA_ARGS__);}
	#endif
    
#ifndef bool
    #define bool uint8_t
#endif
    
typedef uint32_t 	FAN_SPEED;
typedef float 		TEMP_DATA;
typedef uint8_t     PLUG_POWER;
typedef uint8_t     PUMP_SPEED;

void app_cout_status(void);
void board_init(void);

uint64_t app_get_timems();
#include "functionhandle.h"

extern FUNCID funid_adc;
#endif
